Skip to content

Scripted deploy#8

Merged
pipoe2h merged 26 commits into
nutanixdev:mainfrom
mbaran5:scripted-deploy
Jun 13, 2026
Merged

Scripted deploy#8
pipoe2h merged 26 commits into
nutanixdev:mainfrom
mbaran5:scripted-deploy

Conversation

@mbaran5

@mbaran5 mbaran5 commented May 13, 2026

Copy link
Copy Markdown
Contributor

Added a new scripted deployment method for easy first time deployment with the following improvements

  • Automated system prerequisite validation - Checks and configures cgroup v2 delegation automatically
  • Smart NKP Bundle management - Auto-detects existing bundles, downloads if needed, extracts binaries
  • Prism Central version compatibility checks - Prevents incompatible deployments before they start
  • Comprehensive input validation - Validates IP ranges, cluster names, and subnet alignment
  • Network connectivity verification - Ensures outbound access to Nutanix portal
  • Pre-flight summary review - Shows all parameters and requires explicit confirmation

Additionally, updated cloud-init to resolve an issue with newer CIS hardened images where ssh_pwauth does not correctly set making the resultant VM inaccessible via SSH.

Updated README.md as well to reflect the addition of a new process that can be used.

After initial draft review with @vEDW have also made the following structural improvements to my script such as

  • move to v4 apis
  • provide ssh key for future troubleshooting
  • validate rocky image with cluster inventory
  • adjust default pod/service CIDR to avoid overlap with typical corporate networks
  • store all keyed variables incase script fails and needs to be re-run
  • warn user from using air-gapped bundle vs standard bundle

This has been tested in a number of partner environments and HPOCs over the course of the last ~6 weeks.

mbaran5 added 15 commits April 24, 2026 12:28
update sane values for controlplane # of nodes
replace all apis with v4
export ssh key to cluster for troubleshooting
validate rocky image against cluster inventory
set new more-sane pod/service CIDR
implement a function to export all stored variables to a json if script needs to be re-run
fix "finished deployment" logic
warn user when using air-gapped bundle vs standard bundle
fix cloud-init breaking in newer versions of rocky CIS hardened nutanix images - ssh_pwauth breaks using ssh.
fix escaping in downloader
fix perm in nkp/kubectl when already exists in image from cloud-init
add function to pre-deploy konvoy bootstrap image via either docker/podman to avoid rate-limit hit to dockerhub.
add tagging for podman since it differs from docker
@mbaran5

mbaran5 commented May 19, 2026

Copy link
Copy Markdown
Contributor Author

added function to pre-deploy konvoy image as well since that was still being pulled from dockerhub even with the bundle downloaded.

fix tar '-p' missing and causing permission issue in 2.17.0+

@pipoe2h pipoe2h left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please address the comments.

Comment thread README.md Outdated
Comment thread cloud-init Outdated
Comment thread cloud-init Outdated
Comment thread cloud-init Outdated
Comment thread cloud-init
Comment thread nkpDeploy.sh Outdated
Comment thread nkpDeploy.sh Outdated
Comment thread nkpDeploy.sh
Comment thread README.md Outdated
Comment thread nkpDeploy.sh Outdated
mbaran5 and others added 8 commits June 12, 2026 09:28
Co-authored-by: Jose Gomez <jose.gomez@nutanix.com>
Co-authored-by: Jose Gomez <jose.gomez@nutanix.com>
extend timeout for slow bundle push

Co-authored-by: Jose Gomez <jose.gomez@nutanix.com>
Co-authored-by: Jose Gomez <jose.gomez@nutanix.com>
add licensing logic to determine correct number of worker nodes.
remove tarball to free space on bastion after successful extraction
@mbaran5

mbaran5 commented Jun 12, 2026

Copy link
Copy Markdown
Contributor Author

per recommendation from @vEDW - remove tarball after successful extraction ad23aeb

mbaran5 and others added 2 commits June 12, 2026 09:55
Co-authored-by: Jose Gomez <jose.gomez@nutanix.com>
@pipoe2h pipoe2h merged commit 44e4249 into nutanixdev:main Jun 13, 2026
@mbaran5 mbaran5 deleted the scripted-deploy branch June 16, 2026 17:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants